package com.shiehub.sdk.opengw.dto;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Author: guoleijie@shie.com.cn
 * @Description: 请求实体类
 * @date 2016-10-12
 */
public class RequestDto implements Serializable {

  private static final long serialVersionUID = 1L;
  //时间戳
  private String timestamp = new SimpleDateFormat("yyyyMMddHHmmssSSS").format(new Date());
  //服务代码
  private String serviceCode;
  //商户渠道ID
  private String accChanId;
  //报文格式
  private String format = "JSON";
  //签名类型
  private String signType = "RSA";
  //签名
  private String sign;
  //商户token
  private String token;
  //业务报文
  private String bizContent;
  //一户通账号
  private String oneAccountAcc;
  //渠道Id
  private String channelId;


  /**
   * 构造函数
   */
  public RequestDto() {
  }

  /**
   * 构造函数
   *
   * @param serviceCode 服务代码
   * @param accChanId 商户渠道代码
   */
  public RequestDto(String serviceCode, String accChanId) {
    super();
    this.serviceCode = serviceCode;
    this.accChanId = accChanId;
  }

  /**
   * 构造函数
   *
   * @param serviceCode 服务代码
   * @param accChanId 商户渠道ID
   * @param token 凭证
   */
  public RequestDto(String serviceCode, String accChanId, String token) {
    super();
    this.serviceCode = serviceCode;
    this.accChanId = accChanId;
    this.token = token;
  }

  /**
   * 构造函数
   *
   * @param serviceCode 服务代码
   * @param accChanId 商户渠道Id
   * @param timestamp 时间戳
   * @param format 格式
   * @param signType 签名类型
   * @param token 用户凭证
   */
  public RequestDto(String serviceCode, String accChanId, String timestamp, String format,
      String signType,
      String token) {
    super();
    this.serviceCode = serviceCode;
    this.accChanId = accChanId;
    this.timestamp = timestamp;
    this.format = format;
    this.signType = signType;
    this.token = token;
  }

  public String getServiceCode() {
    return serviceCode;
  }

  public void setServiceCode(String serviceCode) {
    this.serviceCode = serviceCode;
  }

  public String getAccChanId() {
    return accChanId;
  }

  public void setAccChanId(String accChanId) {
    this.accChanId = accChanId;
  }

  public String getTimestamp() {
    return timestamp;
  }

  public void setTimestamp(String timestamp) {
    this.timestamp = timestamp;
  }

  public String getFormat() {
    return format;
  }

  public void setFormat(String format) {
    this.format = format;
  }

  public String getSignType() {
    return signType;
  }

  public void setSignType(String signType) {
    this.signType = signType;
  }

  public String getSign() {
    return sign;
  }

  public void setSign(String sign) {
    this.sign = sign;
  }

  public String getToken() {
    return token;
  }

  public void setToken(String token) {
    this.token = token;
  }

  public String getBizContent() {
    return bizContent;
  }

  public void setBizContent(String bizContent) {
    this.bizContent = bizContent;
  }

  public String getOneAccountAcc() {
    return oneAccountAcc;
  }

  public void setOneAccountAcc(String oneAccountAcc) {
    this.oneAccountAcc = oneAccountAcc;
  }

  public String getChannelId() {
    return channelId;
  }

  public void setChannelId(String channelId) {
    this.channelId = channelId;
  }
}
